//
//  MZExtensionUILabel.swift
//  MZTool
//
//  Created by gby on 2022/3/9.
//

import Foundation

extension UILabel {
    //MARK:-创建lab
    public convenience init(_ fontSize: CGFloat, weight w: UIFont.Weight = .regular , color: UIColor, aligment:NSTextAlignment = .left, auto a: Bool? = nil, text: String? = nil) {
        self.init()
        self.font = UIFont.mz.size(fontSize, weight: w, auto: a)
        self.textColor = color
        self.textAlignment = aligment
        self.text = text
    }

    public convenience init(_ font: UIFont, color: UIColor, aligment:NSTextAlignment = .left, text: String? = nil) {
        self.init()
        self.font = font
        self.textColor = color
        self.textAlignment = aligment
        self.text = text
    }
}
